package com.feihao.zhou.review;

public class DemoTest {
    public static void main(String[] args) {
        BaoZi baoZi = new BaoZi();
        baoZi.setCount(10);
        baoZi.setFlag(false);

        Cooker cooker = new Cooker(baoZi);
        ChiHuo1 chiHuo1 = new ChiHuo1(baoZi);

        new Thread(cooker).start();
        new Thread(chiHuo1).start();
    }
}
